<?php if ($this->pageCount > 1){ ?>
    <div class="paginationControl" align="center">                    
        <ul class="pagination">
            <?php  
            //pr($this->view);                              
            	if (isset($this->first) && $this->current > $this->first){                            
                    echo '<li class="previous"><a href="'. $this->url(array('module'=>'default','controller'=>'index','action'=>'index','catId'=> $this->catId,'itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'view' => $this->view, 'page' => $this->first),'index.pagination',true) .'">&lt;&lt;</a></li>';
                }
            ?>                    
            <?php
                if (isset($this->previous)){                            
                    echo '<li class="previous"><a href="'. $this->url(array('module'=>'default','controller'=>'index','action'=>'index','catId'=> $this->catId,'itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'view' => $this->view,  'page' => $this->previous),'index.pagination',true) .'">&lt;</a></li>';
                    
                }
            ?>        
            <?php
            	foreach ($this->pagesInRange as $page){
                    if ($page != $this->current){                                
                        echo '<li><a href="'. $this->url(array('module'=>'default','controller'=>'index','action'=>'index','catId'=> $this->catId,'itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'view' => $this->view, 'page' => $page),'index.pagination',true) .'">'. $page .'</a></li>';
                    }else{                                
                        echo '<li class="active"><a href="">'. $page .'</a></li>';
                    }
                }
            ?>
            <?php
            	if (isset($this->next)){                            
                    echo '<li class="next"><a href="'. $this->url(array('module'=>'default','controller'=>'index','action'=>'index','catId'=> $this->catId,'itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'view' => $this->view, 'page' => $this->next),'index.pagination',true) .'">&gt;</a></li>';
                }
            ?>  
            <?php
            	if (isset($this->last) && $this->current < $this->last){                            
                    echo '<li class="next"><a href="'. $this->url(array('module'=>'default','controller'=>'index','action'=>'index','catId'=> $this->catId,'itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'view' => $this->view, 'page' => $this->last),'index.pagination',true) .'">&gt;&gt;</a></li>';
                }
            ?>                                                                                                                  
                                                    
        </ul>
            
                <?php 
                /**  
                    if (isset($this->first) && $this->current > $this->first){
                        echo '<a class="prev numb item" href="' . $this->url(array('itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'page' => $this->first)). '">&laquo;</a>';
                    }
                    if (isset($this->previous)){
                        echo '<a class="prevx numb item" href="' . $this->url(array('itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'page' => $this->previous)). '">&lsaquo;</a>';
                    }
                    foreach ($this->pagesInRange as $page){
                        if ($page != $this->current){
                            echo  '<a class="numb item" href="' . $this->url(array('itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'page' => $page)). '">' . $page . '</a>';
                        }else{
                            echo '<span class="numb item">' . $page . '</span>';
                        }
                    }
                    if (isset($this->next)){
                        echo '<a class="next numb item" href="' . $this->url(array('itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'page' => $this->next)) . '">&rsaquo;</a>';
                    }
                    if (isset($this->last) && $this->current < $this->last){
                        echo '<a class="nextx numb item" href="' . $this->url(array('itemId'=> $this->itemId, 'areaId' => $this->areaId, 'title' => $this->title, 'transaction' => $this->transaction,  'page' => $this->last)). '">&raquo;</a>';
                    }
                **/
                ?>
                
        <div class="clear-both"></div>        
    </div>
<?php } ?>